<?php

class DBBoolean extends DBField {

    public static function create($value) {

        $result = parent::create($value);

        if($value === 't')
            return true;
        elseif($value === true)
            return true;
        elseif($value === 'f')
            return false;
        elseif(!empty($value))
            return true;
        else
            return false;
    }
}